package com.neuedu.spring.autowire.controller;

import com.neuedu.spring.autowire.service.IUserService;
import com.neuedu.spring.autowire.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;



public class UserController {



    private IUserService userService;

    public UserController() {
    }

    public UserController(IUserService userService) {
        this.userService = userService;
    }

    public void m1() {
        System.out.println("UserController.m1");
        userService.sayHi();
    }


}
